package org.turl.wrappers;

import org.turl.objects.Angle;

/**
 * Created by tonyx
 * Date: Dec 30, 2007
 * Time: 10:02:02 AM
 */
public class PolarToRectangular implements Wrapper{
     public Object[] wrap(Object[] object) {
        return new Object[]{(Double)object[0]*Math.cos(((Angle)object[1]).getValue()),(Double)object[0]*Math.sin(((Angle)object[1]).getValue())};
    }
}
